package com.dd.cloud.user.service.admin;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.admin.AdminSaleInfo;
import com.dd.cloud.user.req.admin.AdminSaleInfoCreateReq;
import com.dd.cloud.user.req.admin.AdminSaleInfoPageReq;
import com.dd.cloud.user.req.admin.AdminSaleInfoUpdateReq;
import com.dd.cloud.user.res.admin.AdminSaleInfoDetailRes;
import com.dd.cloud.user.res.admin.AdminSaleInfoPageRes;

/**
 * @author Lx
 * @version 1.0
 */
public interface IAdminSaleInfoService extends IService<AdminSaleInfo> {
    /**
     * 查询管理员销售列表
     *
     * @param req
     * @return
     */
    IPage<AdminSaleInfoPageRes> queryAdminSaleInfoPage(AdminSaleInfoPageReq req);

    /**
     * 创建销售管理员
     *
     * @param req
     */
    void createAdminSaleInfo(AdminSaleInfoCreateReq req);

    /**
     * 修改销售管理员
     *
     * @param req
     */
    void updateAdminSaleInfo(AdminSaleInfoUpdateReq req);

    /**
     * 查询销售管理员详情
     *
     * @param saleId
     * @return
     */
    AdminSaleInfoDetailRes queryAdminSaleInfoDetail(Integer saleId);

    /**
     * 销售人员转交客户数据
     */
    void saleJoin(Integer beId, Integer toId);
}
